/* 员工管理 */
import Layout from '@/layout'

export default {
  path: '/employee',
  component: Layout,
  children: [{
    path: '',
    name: 'employee',
    component: () => import('@/views/employee/index'),
    meta: { title: '员工', icon: 'dashboard' }
  },
  {
    // 给员工再添加一个子路由 用于跳转 添加员工
    //  path: 'detail/:id?',通过路由正则匹配 可以减少无效的路由规则
    path: 'detail/:id?', // 员工详情的地址
    name: 'detail',
    component: () => import('@/views/employee/detail.vue'),
    hidden: true, // 表示隐藏在左侧菜单
    meta: { title: '员工', icon: 'dashboard' }
  }
  ]
}
